﻿#ifndef HTTPGETEXAMPLE_H
#define HTTPGETEXAMPLE_H

#include <QObject>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>
#include <QUrl>
#include <QDebug>

class HttpGetExample : public QObject
{
    Q_OBJECT
public:
    explicit HttpGetExample(QObject *parent = nullptr);

private slots:
    // 请求完成后的处理槽
    void onReplyFinished(QNetworkReply *reply);

private:
    QNetworkAccessManager *manager; // 网络管理对象

};

#endif // HTTPGETEXAMPLE_H
